﻿// Decompiled with JetBrains decompiler
// Type: SP1.ElementDelegates
// Assembly: SP1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 4A78F1E7-7FD5-407C-8917-5F99ECC43C34
// Assembly location: C:\Users\KasimGulcan\Desktop\Project\DynaCAD\bin\Debug\SP1.dll

using System.Windows;
using System.Xml;

namespace SP1
{
  public static class ElementDelegates
  {
    public static ElementDelegates.ElementType[] Element = new ElementDelegates.ElementType[12];

    static ElementDelegates()
    {
      ElementDelegates.Element[0].Element = "svg";
      ElementDelegates.Element[0].Temsilci = new ElementDelegates.Temsil(StructuralElement.CanvasCreator);
      ElementDelegates.Element[1].Element = "g";
      ElementDelegates.Element[1].Temsilci = new ElementDelegates.Temsil(StructuralElement.CanvasCreator);
      ElementDelegates.Element[2].Element = "a";
      ElementDelegates.Element[2].Temsilci = new ElementDelegates.Temsil(StructuralElement.CanvasCreator);
      ElementDelegates.Element[3].Element = "circle";
      ElementDelegates.Element[3].Temsilci = new ElementDelegates.Temsil(ShapeElements.CircleCreator);
      ElementDelegates.Element[4].Element = "ellipse";
      ElementDelegates.Element[4].Temsilci = new ElementDelegates.Temsil(ShapeElements.EllipseCreator);
      ElementDelegates.Element[5].Element = "line";
      ElementDelegates.Element[5].Temsilci = new ElementDelegates.Temsil(ShapeElements.LineCreator);
      ElementDelegates.Element[6].Element = "path";
      ElementDelegates.Element[6].Temsilci = new ElementDelegates.Temsil(ShapeElements.PathCreator);
      ElementDelegates.Element[7].Element = "polygon";
      ElementDelegates.Element[7].Temsilci = new ElementDelegates.Temsil(ShapeElements.PolygonCreator);
      ElementDelegates.Element[8].Element = "polyline";
      ElementDelegates.Element[8].Temsilci = new ElementDelegates.Temsil(ShapeElements.PolylineCreator);
      ElementDelegates.Element[9].Element = "rect";
      ElementDelegates.Element[9].Temsilci = new ElementDelegates.Temsil(ShapeElements.RectangleCreator);
      ElementDelegates.Element[10].Element = "use";
      ElementDelegates.Element[10].Temsilci = new ElementDelegates.Temsil(DefinitionElement.Use);
      ElementDelegates.Element[11].Element = "text";
      ElementDelegates.Element[11].Temsilci = new ElementDelegates.Temsil(TextElements.TextCreator);
    }

    public delegate UIElement Temsil(XmlNode xn);

    public struct ElementType
    {
      public ElementDelegates.Temsil Temsilci;
      public string Element;
    }
  }
}
